package cn.iocoder.yudao.module.reservation.controller.admin.promotionactivity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 优惠活动 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PromotionActivityRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11552")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "活动类型", example = "1")
    @ExcelProperty(value = "活动类型", converter = DictConvert.class)
    @DictFormat("mrs_activity_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer activityType;

    @Schema(description = "最低触发余额")
    @ExcelProperty("最低触发余额")
    private BigDecimal minAmount;

    @Schema(description = "赠送类型", example = "2")
    @ExcelProperty(value = "赠送类型", converter = DictConvert.class)
    @DictFormat("mrs_gift_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer giftType;

    @Schema(description = "赠送数值")
    @ExcelProperty("赠送数值")
    private BigDecimal giftValue;

    @Schema(description = "活动开始时间")
    @ExcelProperty("活动开始时间")
    private LocalDateTime startTime;

    @Schema(description = "活动结束时间")
    @ExcelProperty("活动结束时间")
    private LocalDateTime endTime;

}